<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LD
  Date: 2017/12/14/0014
  Time: 14:16
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- Sidebar -->
<div class="sidebar">
    <div class="sidebar-collapse">
        <!-- Sidebar Menu-->
        <div class="sidebar-menu">
            <nav id="menu" class="nav-main" role="navigation">
                <ul class="nav nav-sidebar">
                    <div class="panel-body text-center">
                        <div class="bk-avatar">
                            <c:if test="${empty managementlogin.headImage}">
                                <img class="img-circle bk-img-60 img-circle"
                                     alt="${managementlogin.userRealName }" src="/management/web/img/no_img.png"/>
                            </c:if>

                            <c:if test="${not empty managementlogin.headImage}">
                                <img
                                     class="img-circle bk-img-60 img-circle"
                                     alt="${managementlogin.userRealName }"
                                     src="/uploadimg/${managementlogin.headImage}"/>
                            </c:if>
                        </div>
                        <div class="bk-padding-top-10">
                            <i class="fa fa-circle text-success"></i>
                            <small>
                                <c:if test="${not empty managementlogin.roles}">
                                    <c:forEach var="role" items="${managementlogin.roles}">
                                        ${role.roleName }
                                    </c:forEach>
                                </c:if>
                            </small>
                        </div>
                    </div>
                    <div class="divider2"></div>
                    <li class="active">
                        <a href="/management/index">
                            <i class="fa fa-laptop" aria-hidden="true"></i><span>系统首页</span>
                        </a>
                    </li>
                    <c:if test="${not empty managementlogin.permissions}">
                        <c:forEach var="en" items="${managementlogin.permissions}">
                            <c:if test="${en.permissionCode == 'system/admin'}">
                                <li class="nav-parent">
                                    <a>
                                        <i class="fa fa-tasks" aria-hidden="true"></i><span>管理员管理</span>
                                    </a>
                                    <ul class="nav nav-children">
                                        <li><a href="/management/systemUserList"><span class="text"> 管理员信息</span></a></li>
                                    </ul>
                                </li>
                                <li class="nav-parent">
                                    <a>
                                        <i class="fa fa-table" aria-hidden="true"></i><span>角色管理</span>
                                    </a>
                                    <ul class="nav nav-children">
                                        <li><a href="javascript:void(0);"><span class="text"> 角色信息</span></a></li>
                                    </ul>
                                </li>
                                <li class="nav-parent">
                                    <a>
                                        <i class="fa fa-list-alt" aria-hidden="true"></i><span>权限管理</span>
                                    </a>
                                    <ul class="nav nav-children">
                                        <li><a href="javascript:void(0);"><span class="text"> 权限信息</span></a></li>
                                    </ul>
                                </li>
                            </c:if>
                        </c:forEach>
                    </c:if>
                    <li class="nav-parent">
                        <a>
                            <i class="fa fa-user" aria-hidden="true"></i><span>会员管理</span>
                        </a>
                        <ul class="nav nav-children">
                            <li><a href="javascript:void(0);"><span class="text"> 会员信息</span></a></li>
                            <li><a href="javascript:void(0);"><span class="text"> 收货地址</span></a></li>
                        </ul>
                    </li>
                  <%--  <li class="nav-parent">
                        <a>
                            <i class="fa fa-random" aria-hidden="true"></i><span>Visual Chart</span>
                        </a>
                        <ul class="nav nav-children">
                            <li><a href="chart-flot.html"><span class="text"> Flot Chart</span></a></li>
                            <li><a href="chart-xchart.html"><span class="text"> xChart</span></a></li>
                            <li><a href="chart-other.html"><span class="text"> Other</span></a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="widgets.html">
                            <i class="fa fa-life-bouy" aria-hidden="true"></i><span>Widgets</span>
                        </a>
                    </li>
                    <li>
                        <a href="gallery.html">
                            <i class="fa fa-picture-o" aria-hidden="true"></i><span>Gallery</span>
                        </a>
                    </li>
                    <li>
                        <a href="calendar.html">
                            <i class="fa fa-calendar" aria-hidden="true"></i><span>Calendar</span>
                        </a>
                    </li>
                    <li class="nav-parent">
                        <a>
                            <i class="fa fa-map-marker" aria-hidden="true"></i><span>Maps</span>
                        </a>
                        <ul class="nav nav-children">
                            <li><a href="map-basic.html"><span class="text"> Basic</span></a></li>
                            <li><a href="map-vector.html"><span class="text"> Vector</span></a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="typography.html">
                            <i class="fa fa-font" aria-hidden="true"></i><span>Typography</span>
                        </a>
                    </li>
                    <li class="nav-parent">
                        <a>
                            <i class="fa fa-bolt" aria-hidden="true"></i><span>Icons</span>
                        </a>
                        <ul class="nav nav-children">
                            <li><a href="icons-font-awesome.html"><span class="text"> Font Awesome</span></a></li>
                            <li><a href="icons-weathericons.html"><span class="text"> Weather Icons</span></a></li>
                            <li><a href="icons-glyphicons.html"><span class="text"> Glyphicons</span></a></li>
                        </ul>
                    </li>--%>
                </ul>
            </nav>
        </div>
        <!-- End Sidebar Menu-->
    </div>
    <!-- Sidebar Footer-->
    <div class="sidebar-footer">
        <%--<div class="small-chart-visits">
            <div class="small-chart" id="sparklineLineVisits"></div>
            <div class="small-chart-info">
                <label>New Visits</label>
                <strong>70,79%</strong>
            </div>
            <script type="text/javascript">
                var sparklineLineVisitsData = [15, 16, 17, 19, 15, 25, 23, 35, 29, 15, 30, 45];
            </script>
        </div>
        <ul class="sidebar-terms bk-margin-top-10">
            <li><a href="#">Terms</a></li>
            <li><a href="#">Privacy</a></li>
            <li><a href="#">Help</a></li>
            <li><a href="#">About</a></li>
        </ul>--%>
    </div>
    <!-- End Sidebar Footer-->
</div>
<!-- End Sidebar -->
